package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"system/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/book/add", &controllers.BookController{}, "POST:Add")
	beego.Router("/book/list", &controllers.BookController{}, "Get:List")
	beego.Router("/book/del", &controllers.BookController{}, "POST:Del")
	beego.Router("/book/show", &controllers.BookController{}, "Get:Show")
}
